﻿/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../impl/head.h"
#include "heart_acceptor.h"

/////////////////////////////////////////////////////////////////////////////////////////
// 
namespace xos_box
{
    ////////////////////////////////////////////////////////////////////////////////////
    // 

    static heart_acceptor::POOL * pool_ptr = 0;

    ////////////////////////////////////////////////////////////////////////////////////

    heart_acceptor::heart_acceptor()
    {
        m_iInterval = 20;
        m_iCurTime = 0;
        m_pAcceptor = 0;
    }

    heart_acceptor::~heart_acceptor()
    {
        term();
    }

    ////////////////////////////////////////////////////////////////////////////////////
    // 

    int heart_acceptor::get_addr( POOL *** pppPool, LIST *** pppList )
    {
        int ret = 0;
        if( pppPool )
        {
            *pppPool = &pool_ptr;
        }
        if( pppList )
        {
            *pppList = 0;
        }
        return ret;
    }

    int heart_acceptor::init()
    {
        int nRet = 0;
        return nRet;
    }

    int heart_acceptor::term() 
    {
        int nRet = 0;

        m_iInterval = 20;
        m_iCurTime = 0;
        m_pAcceptor = 0;

        return nRet;
    }

} // xos
